package com.jotta.client.exception;


import com.jotta.client.R;
import com.jotta.client.communicate.Configuration;

public class DataParseException extends Exception {

    private String errorMessage;

    public DataParseException(String errorMessage) {
        super();
        this.errorMessage = errorMessage;
    }

    /**
     * @param errorMessage the errorMessage to set
     */
    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    /**
     * @return the errorMessage
     */
    public String getErrorMessage() {
        return Configuration.getRes().getString(R.string.network_error) + "\n"
                + errorMessage;
    }

}
